package db8;

public class TestPlayers extends Players{
    public static void main(String[] args) {
        while (true) {
            if (sum == 11) {
                System.out.println("对不起，已经创建了11个对象。不能在创建了");
                break;
            }
            Players p = new Players();
            sum++;
        }
    }
//    public static void main(String[] args) {
////        Players players = new Players();
////        Players.creat(8);
////        System.out.println();
//
//    }

}
